package com.zymail.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Dorado
 * @since 2021-04-12
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName(resultMap = "BaseResultMap")
public class ZyGet implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 经销商流水id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 经销商id
     */
    private Integer adminId;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 交易所得流水
     */
    private Double fee;

    /**
     * 到账时间
     */
    private LocalDateTime time;

    /**
     * 流水号
     */
    private String tradeNo;

    /**
     * 状态
     */
    private Integer flag;

    //---------------------------------------------------------//

    /**
     * get的一对一admin
     */
    private ZyAdmin admin;

    /**
     * get的一对一order
     */
    private ZyOrder order;

    //---------------------------------------------------------//
}
